import request from '@/utils/request'

// 查询售后安装列表
export function listInstall(query) {
  return request({
    url: '/aftersales/install/list',
    method: 'get',
    params: query
  })
}

// 查询售后安装详细
export function getInstall(id) {
  return request({
    url: '/aftersales/install/' + id,
    method: 'get'
  })
}

// 新增售后安装
export function addInstall(data) {
  return request({
    url: '/aftersales/install',
    method: 'post',
    data: data
  })
}

// 修改售后安装
export function updateInstall(data) {
  return request({
    url: '/aftersales/install',
    method: 'put',
    data: data
  })
}

// 删除售后安装
export function delInstall(id) {
  return request({
    url: '/aftersales/install/' + id,
    method: 'delete'
  })
}
